import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

ListView GetLock(hous){
  var nowTimes = DateTime.now();//获取当前时间
  int wekked = nowTimes.weekday;
  var weekday = ["星期一","星期二","星期三","星期四","星期五","星期六", "星期日"];
  var nowTime = nowTimes.toString();

  var month = nowTime.substring(5, 7);
  var day = nowTime.substring(8, 10);
//  var hous = hous;
  print(nowTime);
  print("$month 月$day 日 $hous");
  print(weekday[wekked-1]);
  ListView listv = ListView(
  children: <Widget>[
  Container(height: 50,),
  Container(
  height: 70,
//                          color: Colors.blueAccent,
  child: Text(" $hous", style: TextStyle(fontSize: 50, color: Colors.black),),
  ),
  Container(
  child: Text("   $month月$day日  ${weekday[wekked-1]}", style: TextStyle(fontSize: 15, color: Colors.black),),
  )
  ],
  );
  return listv;
}